package cn.exrick.xboot.securityAdvisor.controllerImpl

import cn.exrick.xboot.base.service.ISecurityAdvisorService
import cn.exrick.xboot.base.vo.SecurityAdvisorInfoVo
import cn.exrick.xboot.base.vo.UserCommonVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.securityAdvisor.controller.ISecurityAdvisorController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SecurityAdvisorController: ISecurityAdvisorController.SecurityAdvisor {


    @Autowired
    private lateinit var iSecurityAdvisorService: ISecurityAdvisorService


    override fun getSecurityAdvisorListByAreaId(pageVo: PageVo): Result<MutableMap<String, Any?>?>? {

        return iSecurityAdvisorService.getSecurityAdvisorListByAreaId(pageVo)
    }

    override fun getSupervisionListByAreaId(): Result<List<UserCommonVo>> {

        return iSecurityAdvisorService.getSupervisionListByAreaId()
    }

    override fun getSecurityAdvisorInfo(): Result<SecurityAdvisorInfoVo?>? {

        return iSecurityAdvisorService.getSecurityAdvisorInfo()
    }

    override fun getEnterpriseListByAreaId(pageVo: PageVo, areaId: String?): Result<MutableMap<String, Any?>?>? {

        return iSecurityAdvisorService.getEnterpriseListByAreaId(pageVo, areaId)
    }

}